package com.teemo.dp.factorymethod.demo2;

import com.teemo.dp.factorymethod.demo2.computer.Computer;

/**
 * @author Teemo
 */
public class Demo {
    public static void main(String[] args) {
        SimpleFactory simpleFactory = new SimpleFactory();

        Computer laptop = simpleFactory.createComputer("laptop");
        Computer desktop = simpleFactory.createComputer("desktop");


        Computer desktop1 = StaticFactory.createComputer("desktop");

    }
}
